﻿@using Orchard.ContentManagement
@Html.ValidationSummary(T("Login was unsuccessful. Please correct the errors and try again.").ToString())
@{
    var userCanRegister = WorkContext.CurrentSite.As<Orchard.Users.Models.RegistrationSettingsPart>().UsersCanRegister;
    var enableLostPassword = WorkContext.CurrentSite.As<Orchard.Users.Models.RegistrationSettingsPart>().EnableLostPassword;
}
<div class="user-container">
<div class="user-left">
    <div>
        <img src="@Href("~/Themes/DarkStickyFooter/Content/123124.jpg")" />
    </div>
    <div class="user-logon-guide">
        @T("Please enter your username and password.") 
        @if(userCanRegister) { @Html.ActionLink(T("Register").Text, "Register") @T(" if you don't have an account.") }
        @if(enableLostPassword) { <text> </text> @Html.ActionLink(T("Lost your Password?").Text, "RequestLostPassword") }
    </div>
</div>
<div class="user-right">
@using (Html.BeginFormAntiForgeryPost(Href("~/Users/Account/LogOn?ReturnUrl=/"))) {
<fieldset class="login-form group">
    <legend>@T("Account Information")</legend>
    <ol style="margin-bottom: 20px;">
        <li>
            <label for="username-email">@T("Username")</label>
            @Html.TextBox("userNameOrEmail", "", new { id = "username-email", autofocus = "autofocus" })
            @Html.ValidationMessage("userNameOrEmail")
        </li>
        <li>
            <label for="password">@T("Password")</label>
            @Html.Password("password")
            @Html.ValidationMessage("password")
        </li>
    </ol>
    <div style="float:left">@Html.CheckBox("rememberMe", new { id = "remember-me" })<label class="forcheckbox" for="remember-me">@T("Remember Me")</label></div>
    <div style="float: right">
        <button class="primaryAction" type="submit">@T("Sign In")</button>
    </div>
    <div style="clear: both;"></div>
</fieldset>
}
</div>
<div style="clear: both;"></div>
</div>